package com.jyh.config;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
/**
 * 服务启动执行
 *
 */
@Component
@Order(value = 2)
public class MyStartupRunner implements CommandLineRunner {
	@Autowired
	private static final Logger logger = LoggerFactory.getLogger(MyStartupRunner.class);

	@Override
	public void run(String... args) throws Exception {
		logger.info(">>>>>>>>>>>>>>>服务启动执行，执行加载数据等操作 <<<<<<<<<<<<<");
	}
}
